﻿using FluentNHibernate.Mapping;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WebSite.Model;

namespace WebSite.Data.NH.Repositories.Mappings
{
    public class CompanyMap : ClassMap<CompanyInfo>
    {

        public CompanyMap()
        {
            Table("CompanyInfo");
            LazyLoad();
            Id(x => x.CompanyId).GeneratedBy.Identity().Column("CompanyId");
            Map(x => x.CompanyName).Column("CompanyName");
            Map(x => x.CompanyAddress).Column("CompanyAddress");
            Map(x => x.CompanyDesc).Column("CompanyDesc");
        }
    }
}
